package cn.com.idmy.auth.oauth;

import cn.com.idmy.auth.Device;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jetbrains.annotations.NotNull;

import static cn.com.idmy.auth.oauth.OauthConsts.CLIENT_ID;
import static cn.com.idmy.auth.oauth.OauthConsts.CLIENT_SECRET;
import static cn.com.idmy.auth.oauth.OauthConsts.REDIRECT_URI;

@Data
@Accessors(fluent = true)
public class Password {
    @JSONField(name = REDIRECT_URI)
    protected String redirectUri;
    @JSONField(name = CLIENT_ID)
    protected String clientId;
    @JSONField(name = CLIENT_SECRET)
    protected String clientSecret;
    protected long accountType;
    protected Device device;
    @NotNull
    protected String username;
    @NotNull
    protected String password;
    protected String state;
}
